import 'package:flutter/material.dart';

class liveitem extends StatelessWidget {
  const liveitem({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        decoration: BoxDecoration(borderRadius: BorderRadius.circular(10)),
        child: Stack(
          children: [
            Container(
              height: double.infinity,
              width: double.infinity,
              child: ClipRRect(
                borderRadius: BorderRadius.circular(10),
                child: Image(
                    fit: BoxFit.cover,
                    image: NetworkImage(
                        'https://pics7.baidu.com/feed/a71ea8d3fd1f4134f559f5266fccd6c2d0c85e53.jpeg?token=8c7c123dd78a26789a1175697f44b3d5')),
              ),
            ),
            Positioned(
              left: 5,
              bottom: 5,
              child: Text(
                '兔兔牙',
                style: TextStyle(
                    color: Colors.white,
                    fontWeight: FontWeight.w600,
                    fontSize: 12),
              ),
            ),
            Positioned(
                right: 5,
                bottom: 5,
                child: Text(
                  '5.1万',
                  style: TextStyle(
                      color: Colors.white,
                      fontWeight: FontWeight.w600,
                      fontSize: 12),
                ))
          ],
        ));
  }
}
